﻿<Application x:Class="StoreAppLibDemo.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="using:StoreAppLibDemo"
             xmlns:storeAppConverter="using:StoreAppLib.Converters"
             >

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>

                <!--
                    Styles that define common aspects of the platform look and feel
                    Required by Visual Studio project and item templates
                -->
                <ResourceDictionary Source="Common/StandardStyles.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <LinearGradientBrush x:Key="AppPageBackground" StartPoint="0,1" EndPoint="1,0">
                <GradientStop Offset="0.0" Color="#002896" />
                <GradientStop Offset="1.0" Color="#3CAAF0" />
            </LinearGradientBrush>

            <Style x:Key="AppPageStyle" TargetType="Grid">
                <Setter Property="Background" Value="{StaticResource AppPageBackground}" />
            </Style>


            <storeAppConverter:DateTimeConverter x:Key="DateTimeConverter" />
            <storeAppConverter:SolidColorBrushConverter x:Key="SolidColorBrushConverter" />

            <storeAppConverter:ConcatenationConverter x:Key="ConcatenationConverter" />

            <storeAppConverter:ConcatenationParameter x:Key="LanguageConcatenationParameter"
                                                      Distinct="True"
                                                      Separator=","
                                                      Property="Employees.Languages.Name" />

            <storeAppConverter:CountConverter x:Key="CountConverter" />

            <storeAppConverter:CountParameter x:Key="LanguageCountParameter"
                                              Distinct="False"
                                              Property="Employees.Languages.Name" />

            <storeAppConverter:CountParameter x:Key="DistinctLanguageCountParameter"
                                              Distinct="True"
                                              Property="Employees.Languages.Name" />

        </ResourceDictionary>
    </Application.Resources>
</Application>
